package o;

import java.util.Iterator;
import org.jsoup.nodes.Element;

abstract class gcp extends gck {
    gck ˋ;

    static class a extends gcp {
        public a(gck o_gck) {
            this.ˋ = o_gck;
        }

        public boolean ˎ(Element element, Element element2) {
            if (element == element2) {
                return false;
            }
            Element ᐝॱ = element2.ᐝॱ();
            if (ᐝॱ == null || !this.ˋ.ˎ(element, ᐝॱ)) {
                return false;
            }
            return true;
        }

        public String toString() {
            return String.format(":ImmediateParent%s", new Object[]{this.ˋ});
        }
    }

    static class b extends gcp {
        public b(gck o_gck) {
            this.ˋ = o_gck;
        }

        public boolean ˎ(Element element, Element element2) {
            Iterator it = element2.ˉ().iterator();
            while (it.hasNext()) {
                Element element3 = (Element) it.next();
                if (element3 != element2 && this.ˋ.ˎ(element, element3)) {
                    return true;
                }
            }
            return false;
        }

        public String toString() {
            return String.format(":has(%s)", new Object[]{this.ˋ});
        }
    }

    static class c extends gcp {
        public c(gck o_gck) {
            this.ˋ = o_gck;
        }

        public boolean ˎ(Element element, Element element2) {
            if (element == element2) {
                return false;
            }
            Element ˈ = element2.ˈ();
            if (ˈ == null || !this.ˋ.ˎ(element, ˈ)) {
                return false;
            }
            return true;
        }

        public String toString() {
            return String.format(":prev%s", new Object[]{this.ˋ});
        }
    }

    static class d extends gcp {
        public d(gck o_gck) {
            this.ˋ = o_gck;
        }

        public boolean ˎ(Element element, Element element2) {
            if (element == element2) {
                return false;
            }
            for (Element ᐝॱ = element2.ᐝॱ(); !this.ˋ.ˎ(element, ᐝॱ); ᐝॱ = ᐝॱ.ᐝॱ()) {
                if (ᐝॱ == element) {
                    return false;
                }
            }
            return true;
        }

        public String toString() {
            return String.format(":parent%s", new Object[]{this.ˋ});
        }
    }

    static class e extends gcp {
        public e(gck o_gck) {
            this.ˋ = o_gck;
        }

        public boolean ˎ(Element element, Element element2) {
            return !this.ˋ.ˎ(element, element2);
        }

        public String toString() {
            return String.format(":not%s", new Object[]{this.ˋ});
        }
    }

    static class g extends gcp {
        public g(gck o_gck) {
            this.ˋ = o_gck;
        }

        public boolean ˎ(Element element, Element element2) {
            if (element == element2) {
                return false;
            }
            for (Element ˈ = element2.ˈ(); ˈ != null; ˈ = ˈ.ˈ()) {
                if (this.ˋ.ˎ(element, ˈ)) {
                    return true;
                }
            }
            return false;
        }

        public String toString() {
            return String.format(":prev*%s", new Object[]{this.ˋ});
        }
    }

    static class j extends gck {
        j() {
        }

        public boolean ˎ(Element element, Element element2) {
            return element == element2;
        }
    }

    gcp() {
    }
}
